//
//  StockMonitor.h
//  Stock
//
//  Created by blacksun on 11-7-7.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "SQLitePersistentObject.h"


#define kStockMonitorTypeUp         0
#define kStockMonitorTypeDown       1
#define kStockMonitorNameUp         @"上升雷达"
#define kStockMonitorNameDown       @"下跌雷达"

@interface StockRadar : SQLitePersistentObject {
    NSString *stockId;
    NSString *name;
    int type;
    NSString *currentValue;
    NSString *targetValue;
    NSString *targetPercent;
    int status;
    BOOL repeat;
    NSDate *lastDate;
    @private NSArray *statusNames;
}
@property(nonatomic, retain) NSString *stockId;
@property(nonatomic, retain) NSString *name;
@property(nonatomic, assign) int type;
@property(nonatomic, retain) NSString *currentValue;
@property(nonatomic, retain) NSString *targetValue;
@property(nonatomic, retain) NSString *targetPercent;
@property(nonatomic, assign) int status;
@property(nonatomic, assign) BOOL repeat;
@property(nonatomic, retain) NSDate *lastDate;
+(StockRadar *)findByStockId:(NSString *)aStockId andType:(int)aType;
-(NSString *)statusName;
@end
